package com.shekhar.paas.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "archivingJobLogs")
public class ArchivingJobLog {

    @Id
    private String id;
    private List<String> messages;
    private Date startedAt;
    private Date finishedAt;
    private List<String> tweetsNotProcessed;
    private int numberOfTweetsProcessed;
    private long timeTaken;
    
    public List<String> getMessages() {
        if(messages == null){
            messages = new ArrayList<String>();
        }
        return messages;
    }
    
    public Date getStartedAt() {
        return startedAt;
    }
    public void setStartedAt(Date startedAt) {
        this.startedAt = startedAt;
    }
    public Date getFinishedAt() {
        return finishedAt;
    }
    public void setFinishedAt(Date finishedAt) {
        this.finishedAt = finishedAt;
    }
    public List<String> getTweetsNotProcessed() {
        if(tweetsNotProcessed == null){
            tweetsNotProcessed = new ArrayList<String>();
        }
        return tweetsNotProcessed;
    }
   
    public int getNumberOfTweetsProcessed() {
        return numberOfTweetsProcessed;
    }
    public void setNumberOfTweetsProcessed(int numberOfTweetsProcessed) {
        this.numberOfTweetsProcessed = numberOfTweetsProcessed;
    }
    public long getTimeTaken() {
        return timeTaken;
    }
    public void setTimeTaken(long timeTaken) {
        this.timeTaken = timeTaken;
    }
    

    
    
}
